import baseService from '../baseService/index.js'

// 发送消息
const sendMessageApi = async (params) => {
    return await baseService.post("/sendMessage", params)
}

// 保存消息
const saveMessageApi = async (params) => {
    return await baseService.post("/saveMessage", params)
}

// 查询消息
const searchConversitionListApi = async (params) => {
    return await baseService.post("/searchConversitionList", params)
}

// 删除历史会话
const deleteHistoryConversitionApi = async (params) => {
    return await baseService.post("/deleteHistoryConversition", params)
}

export {
    sendMessageApi,
    saveMessageApi,
    searchConversitionListApi,
    deleteHistoryConversitionApi
}